Sensor device provided with a circuit for detection of single or multiple events for generating corresponding interrupt signals

ABSTRACT

A sensor device for an electronic apparatus, is provided with: a sensing structure generating a first detection signal; and a dedicated integrated circuit, connected to the sensing structure, detecting, as a function of the first detection signal, a first event associated to the electronic apparatus and generating a first interrupt signal upon detection of the first event. The dedicated integrated circuit detects the first event as a function of a temporal evolution of the first detection signal, and in particular as a function of values assumed by the first detection signal within one or more successive time windows, and of a relation between these values.

TECHNICAL FIELD

The present disclosure generally relates to a sensor device provided with a circuit for detecting single or multiple events, for generating corresponding interrupt signals. In particular but not exclusively, the following treatment will make specific reference, without this implying any loss of generality, to an accelerometer sensor device and to detection of events based on the analysis of the temporal evolution of acceleration signals detected by the accelerometer sensor.

BACKGROUND INFORMATION

As is known, the increasing use of portable apparatuses—such as laptops, PDAs (Personal Data Assistants), digital audio players, cellphones, digital camcorders, and the like—or electronic apparatuses in general (personal computers, consoles for videogames and associated peripherals, etc.) has led to an increasing need to simplify use thereof, in particular as regards the user interface. In this connection, the possibility of activating given functions or programs of these apparatuses by a simple user control action directly involving the electronic apparatus has been considered of particular interest (for example, a displacement or an inclination of the apparatus, or a force or pressure exerted on the same apparatus).

For this purpose, in some electronic apparatuses, sensor devices have been introduced for detection of control actions imparted by the user (for example, inertial sensors, such as accelerometers or gyroscopes). In particular, the use of MEMS (micro-electromechanical systems) sensors, made with semiconductor technologies, has proven advantageous given their small dimensions and consequent small area occupation. A microprocessor circuit, supervising the general operation of the electronic apparatus, is able to determine user control actions and to activate corresponding functions or programs within the apparatus, via monitoring of the detection signals generated by the sensor devices.

Moreover, the use of detection signals coming from sensor devices on board the electronic apparatuses has been proposed for recognition, via suitable processing operations, of particular apparatus conditions, such as for example, a condition of free fall, or of reactivation from stand-by (wake-up function).

Solutions of this sort, although having the potential advantage of simplifying the interface and improving the general functionality of electronic apparatuses, have the problem of burdening the apparatus microprocessor circuit with continuous monitoring of the detection signals from the sensor devices, and processing of the same signals for recognition of the control actions exerted by the user or of the aforesaid conditions (more in general, of “events” associated to the electronic apparatuses). There follows a general degradation of the performance of the electronic apparatus, and/or a poor promptness thereof in recognizing the aforesaid events.

In order to overcome this problem, the integration within the sensor devices of event-recognition related functions has recently been proposed. In particular, a dedicated integrated circuit has been associated to a detection structure of these devices, the circuit being designed to carry out simple processing operations based on the signals generated by the detection structure for recognition of given events (for example, free-fall or wake-up events). Upon recognition of an event, the integrated circuit generates an interrupt signal for the microprocessor circuit of the electronic apparatus that incorporates the sensor device so that it can promptly activate appropriate actions associated to the detected event, this without using internal resources for event recognition.

However, also due to the small amount of resources and the small area available for integration within the sensor devices, the aforesaid integrated circuits are not currently able to carry out complex processing operations on the detection signals, necessary for example, for recognition of particular (e.g., multiple) events, so that the computational burden for the microprocessor circuits on board the portable apparatuses in given applications remains high.

BRIEF SUMMARY

One embodiment of the present invention overcomes the aforesaid problems and disadvantages and provides a sensor device, provided with an integrated circuit for processing detected signals, that will be able to identify even particular or multiple events.

According to one embodiment of the present invention, a sensor device is consequently provided, the sensor device including:

a sensing structure configured to generate at least a first detection signal; and a dedicated integrated circuit coupled to said sensing structure and configured to detect, as a function of said first detection signal, at least a first event associated to said electronic apparatus, and to generate a first interrupt signal upon detection of said first event, wherein said dedicated integrated circuit is configured to detect said first event as a function of a temporal evolution of said first detection signal.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

For a better understanding, one or more embodiments are now described, purely by way of non-limiting and non-exhaustive examples and with reference to the attached drawings, wherein:

FIG. 1 is a block diagram of an electronic apparatus having a sensor device according to one embodiment of the present invention;

FIG. 2 shows a general block diagram of one embodiment of a circuit integrated in the sensor device of FIG. 1;

FIG. 3 shows a more detailed block diagram of the integrated circuit, according to a particular embodiment of the present invention;

FIGS. 4 a, 4 b and 5 show example plots of quantities related to one embodiment of the sensor device;

FIG. 6 shows a state transition diagram in a finite-state-machine stage of the integrated circuit of FIG. 3 according to one embodiment;

FIG. 7 shows a block diagram of a variant of an analysis stage of the integrated circuit of FIG. 3 according to one embodiment; and

FIG. 8 shows a variant for part of the state transition diagram of FIG. 6 according to one embodiment.

DETAILED DESCRIPTION

In the following description, numerous specific details are given to provide a thorough understanding of embodiments. The embodiments can be practiced without one or more of the specific details, or with other methods, components, materials, etc. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring aspects of the embodiments.

Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrases “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

The headings provided herein are for convenience only and do not interpret the scope or meaning of the embodiments.

FIG. 1 shows an embodiment of an electronic apparatus 1 (for example, a portable apparatus such as a mobile phone, a laptop, a PDA, a digital audio player, a digital camcorder, or the like), comprising a sensor device 2 and a microprocessor circuit 3, connected to the sensor device 2 (for example, the microprocessor circuit 3 and the sensor device 2 are both coupled to a printed-circuit board 4 inside the electronic apparatus 1). The sensor device 2 comprises a sensing structure 5 and a dedicated integrated circuit 6, basically of a hardware type, connected to the sensing structure 5. The sensing structure 5 generates detection signals associated to the condition of the electronic apparatus 1 (which are treated and possibly converted into digital form with a given refresh rate, in a known way that is not described in detail herein), and the dedicated integrated circuit 6 processes the detection signals for generating at output, continuously and in real time, interrupt signals INT for the microprocessor circuit 3, upon occurrence of given events. The sensing structure 5 and the dedicated integrated circuit 6 are integrated in the same chip with the same package, in one embodiment also in the same die of semiconductor material; for example, the sensing structure 5 is made with MEMS technology, and the dedicated integrated circuit 6 is made with CMOS processes.

As will be described in what follows, an embodiment of the present invention envisages that the dedicated integrated circuit 6 will be able to recognize the temporal evolution of the detection signals within a given time window, or in successive time windows, so as to detect particular events (for example, ones having a pre-set duration), or multiple events (for example, repeated at pre-set time intervals). The dedicated integrated circuit 6 is basically able to detect events not only based on the instantaneous value of the detection signals, but also based on the time window in which the detection signals assume this value and based on the relation with past values of the same signals.

In detail, the dedicated integrated circuit 6 of one embodiment comprises (FIG. 2): an analysis stage 10, that receives at its input the detection signals from the sensing structure 5 (not illustrated herein), carries out an analysis based on the instantaneous value of these detection signals, and generates an event signal Ev (for example, a binary signal) upon recognition of a condition potentially indicative of an event associated to the electronic apparatus 1; a finite-state-machine (FSM) stage 12, which receives at its input the event signal Ev and a time signal T, and generates at its output the interrupt signals INT, a reset signal Res, and a current-state signal S; a counter stage 14, which receives at its input a clock signal CK (the frequency of which can be set from outside) and the reset signal Res, and supplies at its output a count signal Cnt; a time register 15, storing time values T_(s) corresponding to pre-set time intervals (for example, ranging between 0 and 128 ms, with steps of 0.5 ms), and supplying at its output one of the time values as a function of the current-state signal S coming from the FSM stage 12; and a digital comparator stage 16, receiving at its input the count signal Cnt and the time value T_(s) from the counter stage 14, and supplying at its output the time signal T (having a binary value).

If the value of the detection signals received at input satisfies given conditions, the analysis stage 10 recognizes a potential event and generates an event signal Ev having a given value (for example, the high value “1”). The counter stage 14 increments the count signal Cnt at each cycle of the clock signal CK, and when the count signal Cnt exceeds the time value T_(s) stored in the time register 15, the time signal T at output from the digital comparator stage 16 also assumes a high value. The FSM stage 12 evolves as a function of the values of the event signal Ev and the time signal T, a high value of one and/or the other of the two signals determining a transition from one state to another (as will be described in detail hereinafter). Evidently, the interrupt signals INT generated at output from the FSM stage 12 are a function not only of the instantaneous value of the detection signals (based on the event signal Ev), but also of the time window in which this value is found (based on the time signal T), and of the past values of the same signals (on account of the very nature of the finite-state machine). According to the state transition, the FSM stage 12 can also reset the counter stage 14 (and hence the count signal Cnt) via the reset signal Res, and modify the time value T_(s) at output from the time register 15 so as to set the value of the time window based on which the digital comparator stage 16 makes the comparison.

One embodiment of the present invention is now described, for detection of single and/or double “click” events in the electronic apparatus 1, where by “click” is meant an event comparable to the pressure on a key or push-button, generated by a force/pressure exerted by the user (for example, by a slight tap) on a casing of the electronic apparatus 1, e.g., on a given portion thereof.

In a known way, electronic apparatuses are provided with one or more keys or push-buttons that enable, via pressure thereon, entry of commands (since the pressure produces a sound event, the operation of a key is commonly defined as “click” or “click event”). In particular, a single pressure (single-click event) or a consecutive double pressure (double-click event) of a key are designed to generate different commands and must consequently be distinguished during a detection step.

In the specific case, the pressure exerted by the user on the casing of the portable apparatus 1 is comparable to a click event, and causes a mechanical stress within the casing reaching the sensor device 2. In order to detect the mechanical stress, the corresponding sensing structure 5 comprises a triaxial linear inertial sensor (in particular, an accelerometer) of a MEMS type, which detects a first acceleration signal A_(x), a second acceleration signal A_(y), and a third acceleration signal A_(z), corresponding to the components of the acceleration acting on the electronic apparatus 1 along three independent axes of detection, orthogonal to one another and forming a set of three Cartesian axes. In a per-se known manner (and for this reason not illustrated), the inertial sensor is made up of elastically mobile elements and fixed elements, and in particular comprises a mobile mass associated to which are mobile electrodes, and fixed electrodes arranged, in pairs, on opposite sides of a respective mobile electrode, to form therewith a pair of differential capacitors for each axis of detection. When the sensor is subjected to forces, and accelerations acting along the three axes of detection x, y, and z, the mobile elements of the sensor undergo an inertial displacement with respect to the fixed elements, which is proportional to the acceleration to which the sensor is subjected. Corresponding capacitive variations are thus generated, one for each axis of detection. In this way, the sensing structure 5 is able to detect click events occurring along any one of the axes of detection x, y, z.

In greater detail, and with reference to FIG. 3, one embodiment of the dedicated integrated circuit 6 receives at its input alternately the first, the second, or the third detection signal A_(x), A_(y), A_(z). For example, the axis of detection and the corresponding detection signal can be selected through a control register (not illustrated), or else the detection signals A_(x), A_(y), A_(z) can be supplied alternately at pre-set time intervals by a multiplexer (not illustrated), set between the sensing structure 5 and the dedicated integrated circuit 6. The analysis stage 10 comprises an analog comparator, which receives the detection signal A_(x), A_(y), A_(z) and a first acceleration threshold A_(Th1) (which can be set from outside) and generates the event signal Ev as a function of the relation between the detection signal and the acceleration threshold. For example, in the analysis stage 10 the absolute value of the detection signal A_(x), A_(y), A_(z) can be extracted, the first acceleration threshold A_(Th1) can have a given positive value, and the event signal Ev can have a high value when the detection signal A_(x), A_(y), A_(z) is greater than the first acceleration threshold A_(Th1). The FSM stage 12 generates at its output first interrupt signals corresponding to the single-click event along the three axes of detection x, y, z (designated, respectively, by INT1x, INT1y, INT1z), and second three axes of detection (designated, respectively, by INT2x, INT2y, INT2z). For reasons that will be clarified in what follows, the time register 15 stores in this case three time values T_(s), different from one another: a limit time value T_(s1), a latency time value T_(s2), and a window time value T_(s3), which are sent to the digital comparator stage 16 as a function of the current-state signal S.

In particular, and as illustrated in FIG. 4 a, the dedicated integrated circuit 6 is configured so as to detect a single-click event along one of the axes of detection x, y, z and to generate the corresponding first interrupt signal INT1x, INT1y, INT1z, when the value of the detection signal A_(x), A_(y), A_(z) along the axis of detection exceeds the first acceleration threshold A_(Th1), and subsequently returns below the same threshold within a predetermined time interval, in particular within the limit time value T_(s1). Instead, as illustrated in FIG. 4 b, no interrupt signal is generated in the case where the detection signal A_(x), A_(y), A_(z) returns below the first acceleration threshold A_(Th1) after the aforesaid time interval has already elapsed (the count signal Cnt has consequently exceeded the limit time value T_(s1)).

As illustrated in FIG. 5, the dedicated integrated circuit 6 is further configured so as to recognize a double-click event along one of the axes of detection x, y, z and to generate the corresponding second interrupt signal INT2x, INT2y, INT2z, when, in two consecutive time intervals, the value of the detection signal A_(x), A_(y), A_(z) along this axis of detection remains above the first acceleration threshold A_(Th1) for a time shorter than the one corresponding to the limit time value T_(s1). In particular, the second threshold crossing must not occur before expiry of a latency time interval, corresponding to the latency time value T_(s2), from recognition of the single-click event, and also, once the latency time interval has elapsed, crossing of the threshold must occur within a time window corresponding to the window time value T_(s3). The second click event must occur with the same modalities as the first click event, and consequently the detection signal must return below the first acceleration threshold A_(Th1) before expiry of the limit time value T_(s1). During the latency time interval, any possible exceeding of the threshold by the detection signal is ignored (possible bounce signals on the detection signal are in this way filtered out). Instead, no interrupt signal is generated in the case where the second threshold crossing occurs after the window time value T_(s3), or else in the case where the second threshold crossing, although occurring within the aforesaid window, lasts for a period longer than the limit time value T_(s1).

Operation of one embodiment of the FSM stage 12 for recognition of the single-click and double-click events is now described with reference to the state transition diagram of FIG. 6. Transition from one state to the next depends on the value of the event signal Ev and/or the value reached by the count signal Cnt (which determines the value of the time signal T). When the counter stage 14 is to be reset, in order to start again counting in the next state, the reset signal Res is set to a high state. The finite-state machine 12 evolves at a rather high frequency (for example, 38 kHz), higher than the frequency of the clock signal CK of the counter stage 14 so as to detect the events promptly. In particular, the frequency of evolution of the finite-state machine 12 is a function of the refresh frequency of the detection signals coming from the sensing structure 5 (and consequently depends on the type of sensor implemented). The frequency of the clock signal CK depends, instead, for example, on the duration of the events that are to be detected. In this way, each time the value of the detection signals is updated, the finite-state machine 12 can reconsider its state, irrespective of the clock signal CK.

In detail, in an initial state S1 the finite-state machine 12 is awaiting recognition of a click. Consequently, it remains in the state S1 as long as the detection signal A_(x), A_(y), A_(z) remains below the first acceleration threshold A_(Th1) (event signal Ev low). The reset signal Res is in the high state so as to maintain the count signal Cnt at zero.

When the event signal Ev switches to the high value (the detection signal exceeds the threshold), the finite-state machine 12 evolves into the state S2, for detection of the single-click event. The reset signal Res is set to the low state so as to enable counting, and switching of the event signal Ev into the low state is waited for.

If switching occurs when the count signal Cnt is greater than the limit time value T_(s1), the finite-state machine 12 evolves into the state S3, in which the reset signal Res is set to the high state so as to reset the counter stage 14, and then into the initial state S1, awaiting a new recognition of a possible click event.

Instead, switching to the low state of the event signal Ev when the count signal Cnt is lower than or equal to the limit time value T_(s1) is indicative of detection of the single-click event, and the finite-state machine 12 evolves into the state S4, in which the first interrupt signal INT1x, INT1y, INT1z corresponding to the single-click event switches to the high value “1”, and the reset signal Res is set to the high state.

From the state S4 the finite-state machine 12 passes to the state S5, in which it waits for the latency time interval to elapse, without monitoring the event signal Ev (the reset signal Res is low to enable counting). Consequently, it remains in the state S5 as long as the count signal Cnt remains lower than or equal to the latency time value T_(s2), and, when the count signal Cnt exceeds this value, there is the transition to the next state S6 in which the count signal Cnt is again reset to zero.

The finite-state machine 12 then evolves into the state S7 for detection, within the pre-set time window, of a second click event. In detail, the reset signal Res is brought back into the low state, and the finite-state machine 12 remains in the state S7 as long as the event signal Ev remains low and the count signal Cnt does not exceed the window time value T_(s3).

If, at the end of the window interval, the event signal Ev has remained low, the finite-state machine 12 evolves into the state S8, in which counting is reset, and then into the initial state S1.

If, instead, the event signal Ev switches to the high state within the aforesaid window interval (with the count signal Cnt smaller than or equal to the window time value T_(s3)), the finite-state machine 12 passes to the state S9, in which counting is reset, and then to the state S10, for detection of the second click event (which occurs in a way altogether similar to the detection of the first click event).

In detail, in the state S10, counting is enabled, and the finite-state machine 12 remains waiting for switching of the event signal Ev into the low state.

If switching occurs when the count signal Cnt is greater than the limit time value T_(s1), the finite-state machine 12 evolves into the state S11, in which the reset signal Res is set to the high state so as to reset the counter stage 14, and then to the initial state S1, for a new event detection.

Instead, switching to the low state of the event signal Ev when the count signal Cnt is lower than or equal to the limit time value T_(s1) is indicative of recognition of the double-click event, and the finite-state machine 12 evolves into the state S12, where the second interrupt signal corresponding to the double-click event INT2x, INT2y, INT2z is set to “1”, and the reset signal Res is set to the high state.

From what has been described and illustrated, the advantages that the sensor device according to one or more embodiments of the invention affords are clear.

A single monolithic integrated device, in fact, incorporates all the operations related to detection of events, even particular or multiple ones. The dedicated integrated circuit 6 implements for this purpose within the sensor device 2 processing not only of the instantaneous value of the detection signals, but also of their temporal evolution within given time intervals. In this way, it is possible to detect, directly within the sensor device 2, events repeated in time or characterized by a particular temporal evolution of the associated detection signals. The dedicated integrated circuit 6 generates interrupt signals INT for the microprocessor circuit 3 of the corresponding electronic apparatus 1, which is thus freed from burdensome operations of numeric processing of the detection signals. The event detection is thus faster and more reliable.

Thanks to its particular configuration, the integrated detection circuit also involves a limited use of resources and a low area occupation for its implementation. In particular, only one counter stage 14 is used for monitoring the various time windows, for detection of events of various types (for example, single-click or double-click events). It is also advantageous the possibility of varying the counter clock frequency to adapt to the characteristics of the windows for monitoring of the detection signal (for example, as regards a corresponding range or step of variation).

The described circuit has a high configurability, given that it is sufficient to modify from outside the threshold values, the time values for the count, or the modalities of state transition of the finite-state machine 12 to adapt detection to different types of events.

Finally, it is clear that modifications and variations can be made to what has been described and illustrated herein, without thereby departing from the scope of the present invention, as defined in the annexed claims.

For example, the analysis stage 10 can be modified as illustrated in FIG. 7, by introducing for the analog comparator a second acceleration threshold A_(Th2) in addition to the first acceleration threshold A_(Th1). In particular, both thresholds can be positive and have different values so as to define a detection with hysteresis of the value of the detection signals (in a per se known manner that is not described in detail herein). The presence of a region of hysteresis enables filtering of possible bouncing and noise existing on the detection signals. Alternatively, the first and second acceleration threshold A_(Th1), A_(Th2) can have the same value and opposite sign so as to detect both positive and negative accelerations. The sign of the detected acceleration could be exploited for recognizing the direction of the acceleration acting on the sensor device 2, and to determine a particular action exerted by the user on the electronic apparatus 1 (in the case of click events, it would be possible, for example, to detect in a different way click events coming from different areas of the apparatus, for example, from a “right” half or “left” half with respect to a corresponding median axis). Acceleration thresholds could also be varied dynamically to take into account the d.c. component of acceleration, by a feedback mechanism. In addition, different acceleration thresholds could be used for the various axes of detection x, y, z.

Furthermore, the way in which state transition if the finite-state machine 12 occurs could be modified, as illustrated in FIG. 8 regarding single-event detection. In particular, according to this variant, the finite-state machine 12 remains in the state S2 as long as the event signal Ev is high and the count signal Cnt is smaller than the time limit T_(s1). If the count signal Cnt becomes greater than or equal to the time limit T_(s1) and the event signal is still high, the finite-state machine 12 evolves into the state S3, in which the reset signal Res is set to the high state. It then remains in the state S3 as long as the event signal Ev remains at the high value, and then passes into the initial state S1 upon switching of the event signal Ev to the low value. Instead, switching to the low state of the event signal Ev in the state S2 (when the count signal Cnt is smaller than the limit time value T_(s1)) is indicative of detection of the single-click event, and the finite-state machine 12 evolves into the state S4, in which the first interrupt signal INT1x, INT1y, INT1z for the single-click event switches to the high value “1”. Basically, in the variant described (which can be applied of course also to detection of a second click event in the state S10 of FIG. 6), the transition of the finite-state machine 12 from the state S2 is determined also by the value assumed by the count signal Cnt and by the counting threshold being reached, and not only by the value of the event signal Ev.

Furthermore, the comparator of the analysis stage 10 can be analog or else digital, according to whether the detection signals coming from the sensing structure 5 have previously been converted into digital form or not. In addition, it is evident that the analysis stage 10 can be made in a different way, and in particular have any configuration that will enable recognition of a potential event (for example, as described in U.S. Patent Application Publication No. 2006-0214913 filed in the name of the present applicant).

The described circuit can be associated to different types of sensors (for example, gyroscopes or inclinometers, pressure sensors, or force sensors), even ones not built using MEMS techniques. More in general, it can be implemented in all the applications that require generation of interrupt signals upon recognition of events, using a low occupation of resources for numeric processing and a low occupation of physical area.

It is moreover evident that the circuit described, with modification of the state transition in the finite-state machine 12, could be configured so as to detect an even greater number of repeated events (for example, a hypothetical triple-click event).

Finally, the electronic apparatus 1 of one embodiment need not be provided with a microprocessor. In this case, the interrupt signal INT generated continuously by the sensor device 2 could, for example, control directly a switch designed to enable/disable a given function within the apparatus, or else control turning-on of a warning light, or issuing of an acoustic signal.

The various embodiments described above can be combined to provide further embodiments. All of the U.S. patents, U.S. patent application publications, U.S. patent applications, foreign patents, foreign patent applications and non-patent publications referred to in this specification and/or listed in the Application Data Sheet, are incorporated herein by reference, in their entirety. Aspects of the embodiments can be modified, if necessary to employ concepts of the various patents, applications and publications to provide yet further embodiments.

These and other changes can be made to the embodiments in light of the above-detailed description. In general, in the following claims, the terms used should not be construed to limit the claims to the specific embodiments disclosed in the specification, Abstract, and the claims, but should be construed to include all possible embodiments along with the full scope of equivalents to which such claims are entitled. Accordingly, the claims are not limited by the disclosure. 

1. A sensor device for an electronic apparatus, the device comprising: a sensing structure configured to generate at least a first detection signal; and a dedicated integrated circuit coupled to said sensing structure and configured to detect, as a function of said first detection signal, at least a first event associated to said electronic apparatus, and to generate a first interrupt signal upon detection of said first event, wherein said dedicated integrated circuit is configured to detect said first event as a function of a temporal evolution of said first detection signal.
 2. The device according to claim 1 wherein said dedicated integrated circuit is configured to detect said first event as a function of values assumed by said first detection signal within a first time window, and of a relation between said values.
 3. The device according to claim 1 wherein said dedicated integrated circuit is configured to detect a second event associated to said electronic apparatus as a function of values assumed by said first detection signal within a first time window and at least a second time window subsequent to said first time window, and a relation between said values, and to generate a second interrupt signal upon detection of said second event.
 4. The device according to claim 3 wherein said first event is a single event, including an event associated to a single click action on said electronic apparatus, and said second event is a repeated event, including an event associated to a double click action on said electronic apparatus.
 5. The device according to any claim 1 wherein said dedicated integrated circuit is configured to generate continuously and in real time said first interrupt signal.
 6. The device according to claim 1 wherein said dedicated integrated circuit and said sensing structure are integrated in a single chip within a same package.
 7. The device according to claim 1 wherein said dedicated integrated circuit includes: an analysis stage, configured to generate an event signal as a function of an instantaneous value of said first detection signal; a timing stage, configured to generate a time signal indicative of a time window in which said first detection signal assumes said instantaneous value; and a control stage, coupled to said analysis stage and to said timing stage and configured to generate said first interrupt signal as a function of said event signal and said time signal.
 8. The device according to claim 7 wherein said control stage includes a finite-state machine, a state transition of which is determined by values of said event signal and of said time signal.
 9. The device according to claim 8 wherein said finite-state machine evolves at a transition frequency that is a function of a refresh frequency of said first detection signal coming from said sensing structure.
 10. The device according to claim 9 wherein said transition frequency is different from, including higher than, a clock frequency f said timing stage.
 11. The device according to claim 7 wherein said analysis stage includes a comparator stage configured to carry out a comparison between said instantaneous value of said first detection signal and a first acceleration threshold and to generate said event signal according to a result of said comparison.
 12. The device according to claim 7 wherein said analysis stage includes a comparator stage with hysteresis configured to make a comparison between said instantaneous value of said first detection signal and first and second acceleration thresholds and to generate said event signal according to a result of said comparison.
 13. The device according to claim 7 wherein said analysis stage includes a comparator stage configured to make a comparison between said instantaneous value of said first detection signal and a first acceleration threshold, having a positive value, and a second acceleration threshold, having a negative value, and to generate said event signal according to a result of said comparison; said event signal being associated to a sign of said first detection signal.
 14. The device according to claim 12 wherein said analysis stage is further configured to vary dynamically values of said first and second acceleration thresholds as a function of a continuous component of said first detection signal.
 15. The device according to claim 7 wherein said timing stage includes: a counter, configured to generate a count signal based on a clock signal and to be reset by a reset signal supplied by said control stage; a storage register, configured to store time values associated to time windows and to supply at output one of said time values as a function of a current-state signal received by said control stage; and a comparator, coupled to said counter and to said storage register and configured to compare said count signal with said time value to generate said time signal.
 16. The device according to claim 1 wherein said first detection signal and said first interrupt signal correspond to a first direction of detection; and wherein said sensing structure is further configured to generate further detection signals corresponding to further directions of detection, and said dedicated integrated circuit is configured to detect, as a function of said further detection signals, further events associated to said electronic apparatus and to generate further interrupt signals corresponding to said further directions of detection.
 17. The device according to claim 1 wherein said sensing structure includes a triaxial linear accelerometer made using MEMS technology.
 18. A portable apparatus, comprising: a microprocessor circuit; and a sensor device having: a sensing structure configured to generate at least a first detection signal; and an integrated circuit coupled to said sensing structure and configured to detect, as a function of said first detection signal, at least a first event associated with said portable apparatus, and to generate a first interrupt signal in response to detection of said first event, wherein said integrated circuit is configured to detect said first event as a function of a temporal evolution of said first detection signal, said sensor device configured to be coupled to said microprocessor circuit to send thereto said first interrupt signal.
 19. The apparatus of claim 18 wherein said integrated circuit includes: an analysis stage, configured to generate an event signal as a function of an instantaneous value of said first detection signal; a timing stage, configured to generate a time signal indicative of a time window in which said first detection signal assumes said instantaneous value; and a control stage, coupled to said analysis stage and to said timing stage and configured to generate said first interrupt signal as a function of said event signal and said time signal.
 20. The apparatus of claim 18 wherein said microprocessor circuit is configured to receive said first interrupt signal continuously from said sensor device.
 21. The apparatus according to claim 19 wherein said control stage includes a finite state machine.
 22. The apparatus according to claim 18 wherein said apparatus is one of: a mobile phone, a portable computer, a PDA, a digital audio player, a digital camcorder, and a peripheral for a videogame console.
 23. A method for detecting events in a sensor device provided with a sensing structure configured to generate a first detection signal and a dedicated integrated circuit coupled to said sensing structure, said method comprising in said dedicated integrated circuit: detecting a first event associated to said electronic apparatus as a function of said first detection signal; and generating a first interrupt signal upon detection of said first event, wherein said detecting said first event includes recognizing a temporal evolution of said first detection signal.
 24. The method according to claim 23 wherein said detecting said first event includes determining values assumed by said first detection signal within a first time window, and a relation between said values.
 25. The method according to claim 24 wherein said first event is single, including an event associated to a single click action, and said determining includes identifying a first relation between said first detection signal and a first threshold, and subsequently identifying a second relation between said first detection signal and said first threshold within said first time window starting from identification of said first relation.
 26. The method according to claim 23, further comprising in said dedicated integrated circuit: detecting a second event associated to said electronic apparatus; and generating a second interrupt signal upon detection of said second event; said detecting said second event including determining values assumed by said first detection signal within a first time window and at least one second time window subsequent to said first time window, and a relation between said determined values.
 27. The method according to claim 26 wherein said second event is repeated, including an event associated to a double click action, and said determining includes: recognizing a given evolution of said first detection signal; waiting, for a latency time interval starting from recognition of said given evolution; and recognizing again said given evolution within said second time window subsequent to said latency time interval; said recognizing said given evolution including identifying a first relation between said first detection signal and a first threshold, and subsequently identifying a second relation between said first detection signal and said first threshold within said first time window starting from identification of said first relation.
 28. The method according to claim 27, further comprising varying said first and/or second time windows, and/or said latency time interval, and/or the value of said first threshold according to an event to be determined.
 29. An apparatus of an electronic device, the apparatus comprising: sensing means for generating at least a first detection signal; and means for detecting, as a function of said first detection signal, at least a first event associated with said electronic device, and to generate a first interrupt signal in response to detection of said first event, wherein said means for detecting detects said first event as a function of a temporal evolution of said first detection signal, said function of said temporal evolution including values assumed by the first detection signal within a plurality of successive time windows and a relation between these values.
 30. The apparatus of claim 29, further comprising processor means for receiving said first interrupt signal from said means for detecting.
 31. The apparatus of claim 29 wherein said means for detecting includes an integrated circuit having: analysis means for generating an event signal as a function of an instantaneous value of said first detection signal; timing means for generating a time signal indicative of a time window in which said first detection signal assumes said instantaneous value; and control means for generating said first interrupt signal as a function of said event signal and said time signal.
 32. The apparatus of claim 31 wherein said control means includes a finite state machine. 